{include file="public/header" /}

<div class="aw-container-wrap">
	<div class="container aw-publish aw-publish-article">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<!-- tab 切换 -->
					<ul class="nav nav-tabs aw-nav-tabs active">
						<li class="active"><a href="{:url('post/publish/article')}">文章</a></li>
						
						<li><a href="{:url('post/publish/question')}">问题</a></li>
						
						<h2 class="hidden-xs"><i class="icon icon-ask"></i> 文章</h2>
					</ul>
					<!-- end tab 切换 -->
					<form action="{:url('ajax/article/edit')}" method="post" id="question_form" class="cmzForm">
						<input type="hidden" name="post_hash" value="" />
						<input type="hidden" name="attach_access_key" value="" />
						<input type="hidden" name="article_id" id="article_id" value="" />
						<div class="aw-mod aw-mod-publish">
							<div class="mod-body">
								<h3>文章标题:</h3>
								<!-- 文章标题 -->
								<div class="aw-publish-title">
									<input type="text" name="title" value="" class="form-control" />
								
									
								<div class="dropdown">
										<select name="category_id" id="" class="form-control">
												<option value="">选择分类</option>
												<?php foreach ($category as  $v): ?>
												<option value="{$v.id}">{$v.title}</option>
											<?php endforeach ?>
											</select>
									
								
								</div>
								</div>
								<!-- end 文章标题 -->

								<!-- 指定分组  -By Jerry 2016.11.1-->
								<h3>指定分组:</h3>
								
								<div class="aw-publish-title">
									<select name="power_group" id="" class="form-control">
									<option value="0">不指定用户组</option>
									{volist name="group" id="v"}
										<option value="{$v.group_id}">{$v.group_name}</option>
									{/volist}
										
									</select>
									
								</div>
								
									<!-- end 指定分组  -By Jerry 2016.11.1-->

								<h3>文章内容:</h3>
								<div class="aw-mod aw-editor-box">
									<div class="mod-head">
										<div class="wmd-panel">
					                        <script type="text/javascript" src="/static/system/third/js/ueditor/ueditor.config.js"></script>
					                        <script type="text/javascript" src="/static/system/third/js/ueditor/ueditor.all.js"></script>
					                        <script type="text/javascript" src="/static/system/third/js/ueditor/ueditor.parse.js"></script>
					                        <textarea name="message" class="message-baiduedit"  style="display:none;"></textarea>
					                         <script id="message" type="text/plain" style="300"></script>
					                        <script type="text/javascript">
					                            var ue = UE.getEditor("message");
					                            ue.addListener( "selectionchange", function () {
					                                $(".message-baiduedit").val(ue.getContent())
					                               
					                            } );
					                            
					                       </script>
								        </div>
									</div>
									<div class="mod-body">
										<p class="text-color-999"><span class="pull-right" id="question_detail_message">&nbsp;</span></p>
									<!-- 	
										<div class="aw-upload-box">
											<a class="btn btn-default">上传附件</a>
											<div class="upload-container"></div>
											<span class="text-color-999 aw-upload-tips hidden-xs"> 允许的附件文件类型: jpg,jpeg,png,gif,zip,doc,docx,rar,pdf,psd </span>
										</div>
										  -->
									</div>
								</div>

								<!-- <h3> 添加话题</h3> -->
							<!-- 	<div class="aw-topic-bar" data-type="publish">
									<div class="tag-bar clearfix">
										<span class="topic-tag">
											<a class="text"> // echo urldecode($_GET['topic_title']); </a>
											<a class="close" onclick="$(this).parents('.topic-tag').remove();">
												<i class="icon icon-delete"></i>
											</a>
											<button class="close aw-close" onclick="">×</button></span><input type="hidden" value=" // echo urldecode($_GET['topic_title']); " name="topics[]" />
										</span>
										
										<span class="topic-tag">
											<a class="text"> // echo $val; </a>
											<input type="hidden" value=" // echo $val; " name="topics[]" />
										</span>
										
										<span class="topic-tag">
											<a class="text">  </a>
											<input type="hidden" value=" // echo $val['topic_title']; " name="topics[]" />
										</span>
										

										<span class="aw-edit-topic icon-inverse"><i class="icon icon-edit"></i>  编辑话题 </span>
									</div>
								</div> -->
							
					<!-- 			<div class="aw-edit-topic-box form-inline" style="display: block;"><input class="form-control" id="aw_edit_topic_title" autocomplete="off" placeholder="创建或搜索添加新话题..." type="text"><a class="btn btn-normal btn-success add">添加</a><a class="btn btn-normal btn-gray close-edit">取消</a><div class="aw-dropdown"><p class="title">没有找到相关结果</p><ul class="aw-dropdown-list"></ul></div></div>
							 -->
							</div>
							<div class="mod-footer clearfix">
								<span class="aw-anonymity">
								</span>
								<input type="hidden" name="uid" value="{$uid}">
								<a class="btn btn-large btn-success cmzPost" table="{:encode('article')}" >确认发起</a>
							</div>
						</div>
					</form>
				</div>
			</div>
			<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
					<!-- 文章发起指南 -->
					<div class="aw-mod publish-help">
						<div class="mod-head">
							<h3> 文章发起指南</h3>
						</div>
						<div class="mod-body">
							<p><b>• 文章标题 :</b> 请用准确的语言描述您发布的文章思想; </p>
							<p><b>• 文章补充:</b> 详细补充您的文章内容, 并提供一些相关的素材以供参与者更多的了解您所要文章的主题思想; </p>
							<p><b>• 选择话题:</b> 选择一个或者多个合适的话题, 让您发布的文章得到更多有相同兴趣的人参与. 所有人可以在您发布文章之后添加和编辑该文章所属的话题; </p>
						</div>
					</div>
					<!-- end 文章发起指南 -->
				</div>
				<!-- end 侧边栏 -->
		</div>
	</div>
</div>



{include file="public/footer" /}